package org.hzz.promotions.types.enums.coupon;

import io.gitee.pkmer.convention.enums.BaseEnum;
import io.gitee.pkmer.convention.enums.BaseEnumTemplate;
import lombok.Getter;

/**
 * @author <a href="mailto:1193094618@qq.com">pkmer</a>
 * <br>
 * <a href = "https://gitee.com/developeros/videos-online">Code Repository</a>
 * At 2024/8/31
 * 发放方式
 */
@Getter
public enum IssueType implements BaseEnum<Byte> {
    NOW((byte)1,"立即发放"),
    LATER((byte)2,"定时发布");

    private final Byte value;
    private final String desc;

    IssueType(Byte value,String desc){
        this.value = value;
        this.desc = desc;
    }

    public static IssueType fromValue(Byte value){
        return BaseEnumTemplate.fromByteValue(IssueType.class,value);
    }
}
